package guestbook;
import java.util.List;

import javax.servlet.http.*;

/*
 * this class supports the gadget's requests for the toto site matches results
 */

public class gadgetRequestResultsServlet extends abstractRequestServlet<totoResult> 
{    
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
	 
	{
		try
		{
			List<totoResult> list;
			String result="error";
			list=getData(totoResult.class);
			for (totoResult elem: list){
				result= elem.toString();
			}
			writeToServlet(resp,result);
		}
		catch (Exception e) /* catches exception for the gadget*/
		{
			e.printStackTrace();
		}
		finally
		{
			pmClose();
		}
			    
	}
}



